<template>
  <div class="search-bar">
    <el-form :inline="true" :model="formItem" class="form-filter" size="mini" @submit.native.prevent>
      <el-form-item>
        <el-input
          v-model="formItem.s_workOrderNum"
          clearable
          placeholder="请输入工单号..."
          @keyup.enter.native="search"
        />
      </el-form-item>
      <el-form-item>
        <el-button plain icon="el-icon-search" @click="search" />
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
const formItem = {
  s_workOrderNum: ''
}

export default {
  name: 'InoutSLTableFilter',
  components: {
  },
  props: {
  },
  data() {
    return {
      formItem: {
        ...formItem
      }
    }
  },
  methods: {
    search: function() {
      this.$parent.filter(this.formItem)
    }
  }
}
</script>
